package com.web.exiaodao.business.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
import com.web.webstart.base.entity.BaseEntity;

/**
 * 
* @ClassName: eBook 
* @Description: 咨询-电子书定义表
* @author eason
* @date 2015年3月23日 下午1:00:00 
*
 */
@Entity
@Table(name = "tb_xa_ebook")
@ApiModel(value="咨询-电子书定义表")
public class EBook extends BaseEntity{

	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value="标题,电子书标题")
	private String title;
	@ApiModelProperty(value="来源,电子书来源,出版社")
	private String source;
	@ApiModelProperty(value="电子书路径,电子书路径")
	private String eBookUrl;
	@ApiModelProperty(value="缩略图,电子书缩略图")
	private String cover;
		
	
	public void setTitle(String title){
		this.title=title;
	}
	
	@Column(nullable=true,length=100)
	public String getTitle(){
		return title;
	}
	public void setSource(String source){
		this.source=source;
	}
	
	@Column(nullable=true,length=50)
	public String getSource(){
		return source;
	}
	public void setEBookUrl(String eBookUrl){
		this.eBookUrl=eBookUrl;
	}
	
	@Column(nullable=true,length=255)
	public String getEBookUrl(){
		return eBookUrl;
	}
	public void setCover(String cover){
		this.cover=cover;
	}
	
	@Column(nullable=true,length=255)
	public String getCover(){
		return cover;
	}
		

}
